/***********************/
/* SIZE PICKER WIDGET */
/***********************/

.size-picker-container {
  overflow: hidden;
  padding: 5px 5px;
}

.size-picker-option {
  float: left;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-right: 2px;
  border-style: solid;
  border-width: 2px;
  border-color: #444;
  cursor: pointer;
}

.size-picker-option[data-size='1'] {
  padding: 5px;
}
.size-picker-option[data-size='2'] {
  padding: 4px;
}
.size-picker-option[data-size='3'] {
  padding: 3px;
}
.size-picker-option[data-size='4'] {
  padding: 2px;
}

.size-picker-option:before {
  content: '';
  width: 100%;
  height: 100%;
  background-color: white;
  display: block;
  text-align: center;
  line-height: 12px;
  font-size: 90%;
}

.size-picker-option:hover {
  border-color: #888;
}

.size-picker-option.selected:before {
  background-color: var(--highlight-color);
}

.size-picker-option.selected {
  border-color: var(--highlight-color);
}

.size-picker-option.labeled:before {
  content: attr(real-size);
  color: black;
}
